{% extends "base.html" %}
{% block title %}Login{% endblock %}
{% block menu_login %}id="current"{% endblock %}
{% block contentwrap_id%}-noside{% endblock %}
{% block content %}
	<div id="main-noside">
		<h2><a href="/login/">TunaCrew is private community</a></h2>
		<p>
		    If you want to use TunaCrew, you have to log on this site.
		</p>
			<div class="block">
	               <h3>Login</h3>
	               <form class="login" id="id_loginform">
	                   <table id="id_table">
	                      {% if error_msg %}
	                      <tr>
	                          <td colspan="2" class="error" id="error_td">{{ error_msg }}</td>
	                      </tr>
	                      {% endif %}
	                       <tr>
	                           <td class="login"><label for="id_user_email">Email: </label></td>
	                           <td><input type="text" name="user_email" class="text" id="id_user_email" /></td>
	                       </tr>
	                       <tr>
	                           <td><label for="id_user_passwd">Password: </label></td>
	                           <td><input type="password" name="passwd" class="text" id="id_user_passwd" /></td>
	                       </tr>
	                       <tr>
	                           <td colspan="2" align="right"><input class="button" type="submit" value="OK" onclick="ajaxLogin(); return false;" /></td>
	                       </tr>
	                   </table>
	                   <p align="center"><a href="/join/">Join Us</a>&nbsp;|&nbsp;<a href="/forgot_pwd/">Forgot Password</a></p>
	               </form>
	           </div>
	<!-- main ends -->	
	</div>
{% endblock %}